package noppes.vc;

import com.google.common.collect.Maps;
import java.util.LinkedHashMap;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.block.statemap.StateMapperBase;
import noppes.vc.blocks.BlockPlaceholder;

class VCBlocks$2 extends StateMapperBase {
   // $FF: synthetic field
   final VCBlocks this$0;

   VCBlocks$2(VCBlocks this$0) {
      this.this$0 = this$0;
   }

   protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
      LinkedHashMap linkedhashmap = Maps.newLinkedHashMap(state.getProperties());
      IProperty iproperty = BlockPlaceholder.DAMAGE;
      String s = iproperty.getName((Comparable)linkedhashmap.remove(BlockPlaceholder.DAMAGE));
      return new ModelResourceLocation("variedcommodities:placeholder_" + s, this.getPropertyString(linkedhashmap));
   }
}
